]> dgit.raspbian.org Git - dovecot.git/commit
[PATCH 1/2] lib-storage: Allow NULL path in mailbox_list_mkdir_root()
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 23 Jun 2026 14:59:45 +0000 (14:59 +0000)
committerNoah Meyerhans <noahm@debian.org>
Wed, 16 Sep 2026 19:06:35 +0000 (15:06 -0400)
commita43c232e654596f0f9792f4a5e2a43f63cb1c9f6
tree240da6f2792c636224d5d3d5d8493d886adbdf7e
parent2585a1e3350046c32d0a7def01d65597a109f8e0
[PATCH 1/2] lib-storage: Allow NULL path in mailbox_list_mkdir_root()

When path is NULL, look up the root directory path of the given type via
mailbox_list_get_root_path() and create that. If there is no path of the
requested type, nothing is done. This avoids open-coding the common
get_root_path() + mkdir_root() pair at call sites.

Gbp-Pq: Name 0001-lib-storage-Allow-NULL-path-in-mailbox_list_mkdir_ro.patch
src/lib-storage/mailbox-list.c
src/lib-storage/mailbox-list.h